﻿function EventHub() {

    this.AddEventListener = function(eventType, callback) {
        PubSub.subscribe(eventType, callback);
    };

    this.RemoveEventListener = function(eventType, callback) {
        PubSub.unsubscribe(eventType, callback);
    };

    this.RaiseEvent = function(eventType, eventArgs) {
        PubSub.publish(eventType, eventArgs);
    };

};